﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
    <script src="tableScroll.1.0.1.js"></script>
    <script type="text/javascript">
        $(function () {
            $('#myTable').tableScroll({
                scrollbarWidth: 0,
                scrollHeight: 250
            });
        });
    </script>
    <style type="text/css">
        body {
            font-size:18px;
            font-family:Arial;
        }
        
        thead {
            display:block;
        }
        
        thead > tr > th {
            text-align:left;
            padding:0px 20px 0px 20px;
        }

        tbody > tr > td > div td {
            padding:0px 20px 0px 20px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table id="myTable">
            <thead>
                <tr>
                    <th>Column 1</th>
                    <th>Column 2 - Really Wide</th>
                    <th>Column 3</th>
                    <th>Column 4</th>
                </tr>
            </thead>
            <tbody>
                <tr>
                    <td>1</td>
                    <td>Test 1</td>
                    <td>afsdfasdgasdg</td>
                    <td>Test 1</td>
                </tr>
                <tr>
                    <td>2</td>
                    <td>Test 2</td>
                    <td>aas</td>
                    <td>Test 2</td>
                </tr>
                <tr>
                    <td>3</td>
                    <td>Test 3</td>
                    <td>Test 3</td>
                    <td>asdgsdgadghwewwrb</td>
                </tr>
                <tr>
                    <td>1</td>
                    <td>Test 1</td>
                    <td>Test 1</td>
                    <td>Test 1</td>
                </tr>
                <tr>
                    <td>4</td>
                    <td>Test 4</td>
                    <td>Test 4</td>
                    <td>Test 4</td>
                </tr>
                <tr>
                    <td>5 as;ldf asdkli903n</td>
                    <td>Test 5</td>
                    <td>Test 5</td>
                    <td>Test 5</td>
                </tr>
                <tr>
                    <td>6</td>
                    <td>Test 6</td>
                    <td>Test 6</td>
                    <td>Test 6</td>
                </tr>
                <tr>
                    <td>7</td>
                    <td>kjaskdjfioasoi</td>
                    <td>Test 7</td>
                    <td>Test 7</td>
                </tr>
                <tr>
                    <td>8</td>
                    <td>Test 8</td>
                    <td>Test 8</td>
                    <td>Test 8</td>
                </tr>
                <tr>
                    <td>9</td>
                    <td>Test 9</td>
                    <td>Test 9</td>
                    <td>Test 9</td>
                </tr>
                <tr>
                    <td>10</td>
                    <td>Test 10</td>
                    <td>Test 10</td>
                    <td>Test 10</td>
                </tr>
                <tr>
                    <td>1</td>
                    <td>Test 1</td>
                    <td>Test 1</td>
                    <td>Test 1</td>
                </tr>
                <tr>
                    <td>2</td>
                    <td>Test 2</td>
                    <td>Test 2</td>
                    <td>Test 2</td>
                </tr>
                <tr>
                    <td>3</td>
                    <td>Test 3</td>
                    <td>Test 3</td>
                    <td>Test 3</td>
                </tr>
                <tr>
                    <td>1</td>
                    <td>Test 1</td>
                    <td>Test 1</td>
                    <td>Test 1</td>
                </tr>
                <tr>
                    <td>4</td>
                    <td>Test 4</td>
                    <td>Test 4</td>
                    <td>Test 4</td>
                </tr>
                <tr>
                    <td>5</td>
                    <td>Test 5</td>
                    <td>Test 5</td>
                    <td>Test 5</td>
                </tr>
                <tr>
                    <td>6</td>
                    <td>Test 6</td>
                    <td>Test 6</td>
                    <td>Test 6</td>
                </tr>
                <tr>
                    <td>7</td>
                    <td>Test 7</td>
                    <td>Test 7</td>
                    <td>Test 7</td>
                </tr>
                <tr>
                    <td>8</td>
                    <td>Test 8</td>
                    <td>Test 8</td>
                    <td>Test 8</td>
                </tr>
                <tr>
                    <td>9</td>
                    <td>Test 9</td>
                    <td>Test 9</td>
                    <td>Test 9</td>
                </tr>
                <tr>
                    <td>10</td>
                    <td>Test 10</td>
                    <td>Test 10</td>
                    <td>Test 10</td>
                </tr>
                <tr>
                    <td>1</td>
                    <td>Test 1</td>
                    <td>Test 1</td>
                    <td>Test 1</td>
                </tr>
                <tr>
                    <td>2</td>
                    <td>Test 2</td>
                    <td>Test 2</td>
                    <td>Test 2</td>
                </tr>
                <tr>
                    <td>3</td>
                    <td>Test 3</td>
                    <td>Test 3</td>
                    <td>Test 3</td>
                </tr>
                <tr>
                    <td>1</td>
                    <td>Test 1</td>
                    <td>Test 1</td>
                    <td>Test 1</td>
                </tr>
                <tr>
                    <td>4</td>
                    <td>Test 4</td>
                    <td>Test 4</td>
                    <td>Test 4</td>
                </tr>
                <tr>
                    <td>5</td>
                    <td>Test 5</td>
                    <td>Test 5</td>
                    <td>Test 5</td>
                </tr>
                <tr>
                    <td>6</td>
                    <td>Test 6</td>
                    <td>Test 6</td>
                    <td>Test 6</td>
                </tr>
                <tr>
                    <td>7</td>
                    <td>Test 7</td>
                    <td>Test 7</td>
                    <td>Test 7</td>
                </tr>
                <tr>
                    <td>8</td>
                    <td>Test 8</td>
                    <td>Test 8</td>
                    <td>Test 8</td>
                </tr>
                <tr>
                    <td>9</td>
                    <td>Test 9</td>
                    <td>Test 9</td>
                    <td>Test 9</td>
                </tr>
                <tr>
                    <td>10</td>
                    <td>Test 10</td>
                    <td>Test 10</td>
                    <td>Test 10</td>
                </tr>
            </tbody>
        </table>
    </div>
    </form>
</body>
</html>
